<?php

//Yii::import('zii.widgets.CPortlet');

class Archive extends Portlet
{
	public $title='Arsip';

	public function getPosts()
	{
		return Post::model()->findPosts();
	}

        public function getPosts2($year)
	{
		return Post::model()->findPosts2($year);
	}

        public function countPosts($years,$month)
	{
		return Post::model()->countPosts($years,$month);
	}

	protected function renderContent()
	{
		$this->render('archive');
	}
}